package org.yzh.protocol.commons.transform.attribute;

import io.github.yezhihao.protostar.annotation.Field;

/**
 * 0x43 终端运行状态（黑）
 */
public class HljTos0x43 {

    public static final int key = 67;

    @Field(length = 1, desc = "主电源状态:0x00：正常； 0x01：欠压； 0x02：掉电")
    private int mpStatus;

    @Field(length = 1, desc = "备用电池状态: 0x00：正常； 0x01：欠压； 0x02：失效")
    private int bpStatus;

    @Field(length = 1, desc = "卫星定位模块状态: 0x00：正常； 0x01：故障")
    private int spmStatus;

    @Field(length = 1, desc = "TTS 模块状态: 0x00：正常； 0x01：故障")
    private int ttsMStatus;

    @Field(length = 1, desc = "备用存储器状态: 0x00：正常； 0x01：故障")
    private int bsStatus;

    public int getMpStatus() {
        return mpStatus;
    }

    public void setMpStatus(int mpStatus) {
        this.mpStatus = mpStatus;
    }

    public int getBpStatus() {
        return bpStatus;
    }

    public void setBpStatus(int bpStatus) {
        this.bpStatus = bpStatus;
    }

    public int getSpmStatus() {
        return spmStatus;
    }

    public void setSpmStatus(int spmStatus) {
        this.spmStatus = spmStatus;
    }

    public int getTtsMStatus() {
        return ttsMStatus;
    }

    public void setTtsMStatus(int ttsMStatus) {
        this.ttsMStatus = ttsMStatus;
    }

    public int getBsStatus() {
        return bsStatus;
    }

    public void setBsStatus(int bsStatus) {
        this.bsStatus = bsStatus;
    }
}